package com.time.workshop.bean;

import java.util.List;

/**
 *  列表的统一返回处理
 *  列表的继承此类
 * @author fanbaolong
 *
 * @param <T>
 */
public class BaseListResponse <T> {

	/** 消息  */
	private String message;
	/**  */
	private int resCode;
	/**  判断是否成功  */
	private boolean success;
	/** 子类 */
	private List<T> result;
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public int getResCode() {
		return resCode;
	}
	public void setResCode(int resCode) {
		this.resCode = resCode;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public List<T> getResult() {
		return result;
	}
	public void setResult(List<T> result) {
		this.result = result;
	}
	@Override
	public String toString() {
		return "BaseListResponse [message=" + message + ", resCode=" + resCode
				+ ", success=" + success + ", result=" + result + "]";
	}
	
	
}
